home *** CD-ROM | disk | FTP | other *** search
/ .net (French) 1996 November / .net Magazine (FR) - Issue 01 - Nov 1996.iso / mac / Edition Web / PageSpinner 1.2b2 / JavaScript Examples / Alert Stationery next >
Text File  |  1996-07-06  |  1KB  |  37 lines

  1. <HTML><HEAD>
  2. <TITLE>JavaScript Alert</TITLE>
  3. </HEAD>
  4. <BODY onLoad="window.alert('Welcome!');">
  5. <H1>JavaScript Alert</H1>
  6.  
  7. <B>This stationery page contains an example of a link that displays an alert</B>
  8. <P>
  9. Please note that JavaScript is currently only available in Netscape Navigator 2.0 or higher.<BR>
  10. <FONT COLOR="931B15">Do not assume that all in your audience are using a JavaScript enabled browser.</FONT>
  11. <HR>
  12. <P>
  13. <A HREF="#"
  14.  onClick="window.alert('This is a special message to you!');"
  15.  onMouseOver="window.status='This is not a regular link'; return true">Example</A> of a link displaying an alert dialog.
  16. <P>
  17. <HR>
  18. <P>
  19. <B>How to use:</B>
  20. <P>
  21. Use something like this inside the contents of your page to create a link that will display an alert.
  22.  
  23. <XMP><A HREF="#"
  24.  onClick="window.alert('This is a special message to you!');"
  25.  onMouseOver="window.status='This is not a regular link'; return true">Example</A> of a link displaying an alert dialog.
  26. </XMP>
  27. <P>
  28. <HR>
  29. <P>
  30. You can use the following Body tag:<P>
  31.  <CODE><BODY onLoad="window.alert('Welcome!');"></CODE>
  32. <P>
  33.  to display an <BLINK>annoying</BLINK> alert every time the page is loaded.
  34.  
  35. </BODY>
  36. </HTML>
  37.